package com.pzb.page.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pzb.common.core.domain.BaseEntity;

/**
 * 商品展示对象 pg_page_item_goods
 * 
 * @author Mr_Wu
 * @date 2021-12-20
 */
public class PgPageItemGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** p_page_item表中的id */
    private Long itemId;

    private String itemTitle;

    /** banner图片地址 */
    private Long pictureId;

    private String filePath;

    private String previewPath;

    /** banner链接地址 */
    private String linkAddress;

    private String linkGoodsName;

    /** 展示方式:0为一行一列；1为一行两列；2为列表显示 */
    private Integer displayMode;

    /** 页面最大显示数 */
    private Integer maxNumber;

    /** 链接类型：1首页；2商品；3商品分类；4优惠券；5自定义页面；6搜索页 */
    private Integer linkType;

    /** 背景颜色 */
    private String backgroundColor;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }

    public String getItemTitle() {
        return itemTitle;
    }

    public void setItemTitle(String itemTitle) {
        this.itemTitle = itemTitle;
    }

    public void setPictureId(Long pictureId)
    {
        this.pictureId = pictureId;
    }

    public Long getPictureId() 
    {
        return pictureId;
    }
    public void setLinkAddress(String linkAddress) 
    {
        this.linkAddress = linkAddress;
    }

    public String getLinkAddress() 
    {
        return linkAddress;
    }
    public void setDisplayMode(Integer displayMode) 
    {
        this.displayMode = displayMode;
    }

    public Integer getDisplayMode() 
    {
        return displayMode;
    }
    public void setMaxNumber(Integer maxNumber) 
    {
        this.maxNumber = maxNumber;
    }

    public Integer getMaxNumber() 
    {
        return maxNumber;
    }
    public void setLinkType(Integer linkType) 
    {
        this.linkType = linkType;
    }

    public Integer getLinkType() 
    {
        return linkType;
    }
    public void setBackgroundColor(String backgroundColor) 
    {
        this.backgroundColor = backgroundColor;
    }

    public String getBackgroundColor() 
    {
        return backgroundColor;
    }

    public String getLinkGoodsName() {
        return linkGoodsName;
    }

    public void setLinkGoodsName(String linkGoodsName) {
        this.linkGoodsName = linkGoodsName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getPreviewPath() {
        return previewPath;
    }

    public void setPreviewPath(String previewPath) {
        this.previewPath = previewPath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("itemId", getItemId())
            .append("pictureId", getPictureId())
            .append("linkAddress", getLinkAddress())
            .append("displayMode", getDisplayMode())
            .append("maxNumber", getMaxNumber())
            .append("linkType", getLinkType())
            .append("backgroundColor", getBackgroundColor())
            .toString();
    }
}
